#define _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"
test1()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist,9);
	SLTPushBack(&plist,8);
	SLTPrint(plist);
	SLTPopBack(&plist);
	SLTPrint(plist);
	SLTPushFront(&plist,85);
	SLTPrint(plist);
	SLTPopFront(&plist);
	SLTPrint(plist);

}
test2()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 9);
	SLTPushBack(&plist, 8);
	SLTPushBack(&plist, 7);
	SLTPushBack(&plist, 6);
	SLTPushBack(&plist, 5);
	SLTPushBack(&plist, 4);
	SLTPushBack(&plist, 3);
	SLTPrint(plist);
	SLTPopBack(&plist);
	SLTPrint(plist);
	SLTPushFront(&plist, 85);
	SLTPrint(plist);
	SLTPopFront(&plist);
	SLTPrint(plist);
	SLTFind(plist, 8);

	SLTNode* pos = SLTFind(plist, 8);
	//SLTPrint(plist);
	//SLTInsert(&plist, pos, 10);
	//SLTPrint(plist);
	SLTInsertAfter(pos, 120);
	SLTPrint(plist);

}
int main()
{
	test2();
	return 0;
}